package com.xb.cloud.product.merchant.service.client.bo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Property;

@Entity(noClassnameStored = true)
public class ProductAttributeMongoBo implements Serializable {
	private static final long serialVersionUID = -8452703116720046643L;

	// -------------基本字段---------------
	//属性key Id 
	@Property("attributeLibKeyId")
	private Long attributeLibKeyId;

	// 数据类型0：数值 1：文本 2：颜色
	@Property("attributeType")
	private Byte attributeType;
	
	
	// -------------关联字段---------------
	//别名
	@Property("attributeAlias")
	private String attributeAlias;
	
	//是否是系列属性
	@Property("isSeriesAttribute")
	private Byte isSeriesAttribute;
	
	// 如果是系列属性，对应顺序
	@Property("seriesAttributeSort")
	private Integer seriesAttributeSort;
	
	// 如果是描述属性，对应顺序
	@Property("describeAttributeSort")
	private Integer describeAttributeSort;
	
	
	

	@Embedded
	private List<ProductAttributeValueMongoBo> attrValues = new ArrayList<ProductAttributeValueMongoBo>();

	public Long getAttributeLibKeyId() {
		return attributeLibKeyId;
	}

	public void setAttributeLibKeyId(Long attributeLibKeyId) {
		this.attributeLibKeyId = attributeLibKeyId;
	}

	public List<ProductAttributeValueMongoBo> getAttrValues() {
		return attrValues;
	}

	public void setAttrValues(List<ProductAttributeValueMongoBo> attrValues) {
		this.attrValues = attrValues;
	}

	public String getAttributeAlias() {
		return attributeAlias;
	}

	public void setAttributeAlias(String attributeAlias) {
		this.attributeAlias = attributeAlias;
	}

	public Byte getAttributeType() {
		return attributeType;
	}

	public void setAttributeType(Byte attributeType) {
		this.attributeType = attributeType;
	}

	public Byte getIsSeriesAttribute() {
		return isSeriesAttribute;
	}

	public void setIsSeriesAttribute(Byte isSeriesAttribute) {
		this.isSeriesAttribute = isSeriesAttribute;
	}

	public Integer getSeriesAttributeSort() {
		return seriesAttributeSort;
	}

	public void setSeriesAttributeSort(Integer seriesAttributeSort) {
		this.seriesAttributeSort = seriesAttributeSort;
	}

	public Integer getDescribeAttributeSort() {
		return describeAttributeSort;
	}

	public void setDescribeAttributeSort(Integer describeAttributeSort) {
		this.describeAttributeSort = describeAttributeSort;
	}

	
}
